Page({
  data:{
    queryData:{
       page:1,
       limit:10,
       type:2
     },
     dataListOne:[],
     id:''
  },
  onShow(){
   this.getArticle()
  },

  async delCollect(ev){
    await wx.http.get('/user/userDataHandle',{
      type:2,action:'del',article_id:ev.mark.id
    })
    this.getArticle()
  },

  // 获取列表
 async getArticle(){
    const dataArticle = await wx.http.get('/user/userDataList',this.data.queryData)
    console.log(dataArticle);
    this.setData({dataListOne:dataArticle.data.list.data})
    console.log(dataArticle.data.list.data);
  }
})